package com.example.hetong.dao;

// import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
// import com.baomidou.mybatisplus.core.mapper.BaseMapper;
// import com.baomidou.mybatisplus.core.metadata.IPage;
// import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.hetong.entity.Contract;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * --- 行成于思,毁于随 ---
 *
 * @author Song
 * @date 2024/9/11
 * @desc First
 */
public interface ContractMapper extends BaseMapper<Contract> {
    List<Contract> findAll();

    boolean delete(int id);

    // IPage<Contract> selectContract(Page<Contract> page, @Param("queryParam") QueryWrapper<Contract> queryWrapper);

    List<String> findKuang();

    boolean addList(Contract contract);

    List<Contract> findByMap(HashMap<String, String> map);
}
